package com.jinlingxiu.app.mvp.presenter

import com.jinlingxiu.app.mvp.contract.WelcomeContract
import com.xdja.easymvp.mvp.BasePresenter
import kotlinx.coroutines.delay

/**
 * 描述:
 * Create by yuanwanli
 * Date 2020/09/10
 */
class WelcomePresenter(model: WelcomeContract.Model, rootView: WelcomeContract.View) :
    BasePresenter<WelcomeContract.Model, WelcomeContract.View>(model, rootView) {
    fun getCountdown() {
        launch {
            repeat(6) {
                delay(1000L)
                mRootView?.showCountdown()
            }
        }
    }

}
